package com.example.demo.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("db_admin")
@ApiModel(value = "管理员实体类")
public class Admin implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "Admin_id",type = IdType.AUTO)
    @ApiModelProperty(value = "管理员唯一编号")
    private String id;

    @TableField(value = "Admin_username")
    @ApiModelProperty(value = "管理员用户名")
    private String username;

    @TableField(value = "Admin_password")
    @ApiModelProperty(value = "管理员密码")
    private String password;
}
